//
//  WURLRequset.h
//  OneArticle
//
//  Created by mac on 14/12/18.
//  Copyright (c) 2014年 AliliWl. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^getDictionaryCallbackBlock)(BOOL success,NSDictionary *dictionary);
@interface WURLRequset : NSObject
@property(strong,nonatomic) NSMutableData *resultData;
@property(strong) void (^finishCallbackBlock)(BOOL success,NSDictionary *dictionary);
/**
 *  异步Get请求
 *
 *  @param urlStr   URL 地址
 *  @param callback return Data
 */
+ (void)getExecuteWithUrlStr:(NSString *)urlStr FinishCallback:(getDictionaryCallbackBlock)callback;
/**
 *  同步Get请求
 *
 *  @param URLString URL 地址
 *  @param callback  return Data
 *
 */
+ (void)getSynchronizationWithURLString:(NSString *)URLString FinishCallBack:(getDictionaryCallbackBlock)callback;
/**
 *  异步Post请求
 *
 *  @param urlStr URL'地址
 *  @param params URL'parames
 *  @param block  return Data
 */
+ (void)postExecuteWithUrlStr:(NSString *)urlStr Paramters:(NSString *)params FinishCallback:(getDictionaryCallbackBlock)callback;
/**
 *  同步Post请求
 *
 *  @param urlStr URL'地址
 *  @param params URL'parames
 *  @param block  return Data
 */
+ (void)postSynchronizationWithURLString:(NSString *)URLString Paramters:(NSString *)params FinishCallBack:(getDictionaryCallbackBlock)callback;
@end
